﻿using SqlSugar;
namespace Magic.Core;

/// <summary>
/// 管理员角色表
///</summary>
[SugarTable("sys_role")]
public class SysRole
{
    /// <summary>
    /// ID 
    ///</summary>
    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }
    /// <summary>
    /// 上级分组 
    /// 默认值: 0
    ///</summary>
    [SugarColumn(ColumnName = "pid")]
    public int Pid { get; set; }
    /// <summary>
    /// 组名 
    /// 默认值: 
    ///</summary>
    [SugarColumn(ColumnName = "name")]
    public string Name { get; set; }
    /// <summary>
    /// 权限规则ID 
    ///</summary>
    [SugarColumn(ColumnName = "permissions")]
    public string Permissions { get; set; }
    /// <summary>
    /// 创建时间 
    ///</summary>
    [SugarColumn(ColumnName = "createtime")]
    public long Createtime { get; set; }
    /// <summary>
    /// 更新时间 
    ///</summary>
    [SugarColumn(ColumnName = "updatetime")]
    public long Updatetime { get; set; }
    /// <summary>
    /// 状态:0=禁用,1=启用 
    /// 默认值: 1
    ///</summary>
    [SugarColumn(ColumnName = "status")]
    public StatusEnum Status { get; set; }
}
